:root {
        --primary-color: #1e88e5;
        --secondary-color: #0d47a1;
        --sidebar-bg: #f8f9fa;
        --sidebar-hover: #e9ecef;
        --content-bg: #ffffff;
        --border-color: #dee2e6;
        --text-dark: #343a40;
        --text-light: #6c757d;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: 'Arial', sans-serif;
        background-color: #f5f7fa;
        color: var(--text-dark);
        display: flex;
        min-height: 100vh;
    }

    /* 侧边导航栏 */
    .sidebar {
        width: 220px;
        background-color: var(--sidebar-bg);
        border-right: 1px solid var(--border-color);
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .sidebar-header {
        padding: 0 20px 20px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 15px;
    }

    .sidebar-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--secondary-color);
    }

    .nav-menu {
        flex: 1;
        overflow-y: auto;
    }

    .nav-item {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        color: var(--text-dark);
        text-decoration: none;
        transition: all 0.2s;
        border-left: 3px solid transparent;
    }

    .nav-item i {
        margin-right: 10px;
        font-size: 18px;
        width: 24px;
        text-align: center;
    }

    .nav-item:hover {
        background-color: var(--sidebar-hover);
        color: var(--secondary-color);
    }

    .nav-item.active {
        background-color: #e3f2fd;
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
        font-weight: 500;
    }

    .nav-divider {
        margin: 15px 20px;
        border-top: 1px solid var(--border-color);
    }

    /* 主内容区 */
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
        background-color: var(--content-bg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid var(--border-color);
        z-index: 100;
    }

    .welcome {
        font-size: 20px;
        font-weight: 500;
        color: var(--text-dark);
    }

    .logout-btn {
        background-color: #f44336;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
    }

    .logout-btn i {
        margin-right: 5px;
    }

    /* 页面内容容器 */
    .page-content {
        flex: 1;
        padding: 25px;
        overflow-y: auto;
        background-color: #f5f7fa;
    }

    .page-container {
        background-color: var(--content-bg);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        padding: 20px;
        margin-bottom: 25px;
    }

    .page-title {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 20px;
        color: var(--secondary-color);
        display: flex;
        align-items: center;
    }

    .page-title i {
        margin-right: 10px;
    }

    /* 图表容器 */
    .chart-container {
        width: 100%;
        height: 500px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        padding: 15px;
        margin-bottom: 25px;
    }

    .chart-row {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }

    .chart-col {
        flex: 1;
    }

    .loading {
        text-align: center;
        padding: 50px;
        font-size: 18px;
        color: #666;
    }

    /* 工具按钮 */
    .toolbar {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 15px;
        gap: 10px;
    }

    .tool-btn {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        padding: 6px 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    .tool-btn i {
        margin-right: 5px;
    }

    .tool-btn:hover {
        background: #e9ecef;
    }

    /* 年份选择器 */
    .year-selector {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }

    .year-btn {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 20px;
        padding: 6px 15px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
    }

    .year-btn:hover {
        background: #e9ecef;
    }

    .year-btn.active {
        background-color: #1e88e5;
        color: white;
        border-color: #1e88e5;
        font-weight: 500;
    }

    /* 高级查询样式 */
    .advanced-query-form {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 25px;
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #dee2e6;
    }

    .query-select {
        flex: 1;
        min-width: 200px;
    }

    .query-select label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #495057;
    }

    .query-select select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        background-color: white;
        font-size: 14px;
    }

    .query-btn {
        align-self: flex-end;
        background-color: #1e88e5;
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.2s;
    }

    .query-btn:hover {
        background-color: #1565c0;
    }

    .query-result {
        margin-top: 20px;
        padding: 20px;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .result-header {
        grid-column: span 2;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e9ecef;
    }

    .result-group-left {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-right: 15px;
        border-right: 1px solid #e9ecef;
    }

    .result-group-right {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
    }

    .result-item {
        display: flex;
        margin-bottom: 0;
        font-size: 16px;
    }

    .result-label {
        font-weight: 600;
        width: 100px;
        color: #495057;
    }

    .result-value {
        flex: 1;
        color: #212529;
    }

    .increase {
        color: #4caf50;
    }

    .decrease {
        color: #f44336;
    }

    .data-loading {
        text-align: center;
        padding: 20px;
        font-size: 16px;
        color: #666;
        display: none;
    }

    .error-message {
        color: #f44336;
        margin-top: 15px;
        padding: 10px;
        background-color: #ffebee;
        border-radius: 4px;
        display: none;
    }

    /* 其他页面样式 */
    .d-none {
        display: none;
    }

    /* ================= 您要求添加的新样式 ================= */
    /* 下拉框选中状态效果 */
    .query-select select option:checked {
        background-color: #e3f2fd;
        color: #1e88e5;
        font-weight: 500;
    }

    /* 表单组悬停效果 */
    .query-select:hover label {
        color: #1e88e5;
        transition: color 0.3s ease;
    }

    /* 下拉框悬停效果 */
    .query-select:hover select {
        border-color: #1e88e5;
        box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
    }

    /* 查询按钮悬停效果增强 */
    .query-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
    }
    .error-message {
        display: flex;
        align-items: center;
        font-size: 16px;
    }

    .error-message i {
        margin-right: 8px;
        font-size: 18px;
    }

    /* ================= 响应式设计 ================= */
    @media (max-width: 992px) {
        .sidebar {
            width: 70px;
        }

        .sidebar-title, .nav-item span {
            display: none;
        }

        .nav-item {
            justify-content: center;
            padding: 15px 0;
        }

        .nav-item i {
            margin-right: 0;
            font-size: 20px;
        }
    }

    @media (max-width: 768px) {
        .chart-row {
            flex-direction: column;
        }

        .header {
            flex-direction: column;
            align-items: flex-start;
        }

        .welcome {
            margin-bottom: 10px;
        }

        .year-selector {
            justify-content: center;
        }

        /* 高级查询表单响应式优化 */
        .advanced-query-form {
            padding: 20px;
            gap: 15px;
        }

        .query-select {
            min-width: 100%;
        }

        .query-btn {
            width: 100%;
            justify-content: center;
            padding: 12px;
        }

        .query-result {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .result-header {
            grid-column: span 1;
        }

        .result-group-left,
        .result-group-right {
            padding: 0;
            border: none;
        }

        .result-item {
            margin-bottom: 15px;
        }

        /* 移除左右分组的边框 */
        .result-group-left {
            border-right: none;
            padding-right: 0;
        }

        .result-group-right {
            padding-left: 0;
            border-left: none;
        }
    }